 <!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>业务助手</title>
    <meta name="viewport" content="initial-scale=1, maximum-scale=1">
    <link rel="shortcut icon" href="/favicon.ico">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">

    <link rel="stylesheet" href="http://g.alicdn.com/msui/sm/0.6.1/css/sm.min.css">
    <link rel="stylesheet" href="http://g.alicdn.com/msui/sm/0.6.1/css/sm-extend.min.css">
    <link rel="stylesheet" type="text/css" href="/public/css/public.css">
    <link rel="stylesheet" type="text/css" href="/public/css/css.css">
  <style>
  	.page{ background: #0abe74;}
  </style>
</head>
<body>
<div class="page-group">
    <div class="page">
        <div class="content login">
          <form id="ip_form" action="/putIdentityCode" method="post">
            <h3>请输入您的授权码</h3>
            <ul>
              <li><input id="identity_code" type="text" class="editbox radius5" placeholder="授权码" spellcheck="false" tabindex="1" value="" name="identityCode" /></li>
              <li><input type="button" class="button button-fill button-big button-orange" onclick="submitCode()" value="登陆" /></li>
            </ul>
          </form>
        </div>

    </div>
</div>
<script type='text/javascript' src='http://g.alicdn.com/sj/lib/zepto/zepto.min.js' charset='utf-8'></script>
<script type='text/javascript' src='http://g.alicdn.com/msui/sm/0.6.1/js/sm.min.js' charset='utf-8'></script>
<script type='text/javascript' src='/public/layer/mobile/layer.js' charset='utf-8'></script>


<script type="text/javascript">
        $.init();
        $(function () {
            // 提示
            var msg = '${flash.get("msg")}';
            if(msg != null && msg != '' && msg != undefined){
                $.alert(msg);
            }
        })

        function submitCode() {
            var identityCode = $('#identity_code').val();
            console.log(identityCode);
            if(identityCode == null || identityCode == '' || identityCode == undefined){
                $.alert("请输入业务员授权码！");
                return ;
            }else {
                // window.location.href = "/task/record";
                // $('#ip_form').attr('action','/putIdentityCode');
                $('#ip_form').submit();

            }

        }
    </script>
</body>
</html>
